<template>
	<view class="container">
		<com-head textTit="会员卡二维码" :typeVal="1" :scrollTop="scrollTop"></com-head>
		
		<view class="popMain">
			<view class="specification">
				<image class="specification-header" src="//jiudao123.oss-cn-shanghai.aliyuncs.com/store/img/bg7.png"></image>
				<br>
				<view class="specification-name">{{userInfo.nickname || '-'}}</view>
				<br>
				<view class="specification-num">{{userInfo.vip_no || '-'}}</view>
				<br>
				<image class="specification-qr" :src="userInfo.qrcode"></image>
				<br>
				<view class="specification-title">会员卡截图无效，该卡仅限用户本人使用</view>
			</view>
		</view>
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				scrollTop: 0
			}
		},
		onPageScroll(e){
			this.scrollTop = e.scrollTop
		},
		methods: {
			
		}
	}
</script>

<style lang="scss" scoped>
.container{
	height: 100vh;
	padding: 50rpx 32rpx;
	background: linear-gradient(135deg, #5BD2AA 0%, #EDFDE3);
}

.popMain{
		height: 900rpx;
		// border: 1rpx solid saddlebrown;
	}
	.specification{
		width: 100%;
		height: 780rpx;
		// border: 1rpx solid red;
		background-image: url('//jiudao123.oss-cn-shanghai.aliyuncs.com/store/img/bg99.png');
		background-repeat: no-repeat;
		background-size: cover;
		position: relative;
		text-align: center;
		margin: 128rpx auto 0;
		&-header{
			width: 143rpx;
			height: 142rpx;
			border-radius: 60%;
			margin-top: 17rpx;
		}
		&-num{
			font-size: 32rpx;
			color: #4D5562;
			margin-top: 50rpx;
		}
		&-name{
			font-size: 40rpx;
			color: #333333;
			margin-top: 10rpx;
		}
		&-qr{
			width: 346rpx;
			height: 350rpx;
			border-radius: 15rpx;
			margin-top: 30rpx;
			border: 1rpx solid #ededed;
		}
		&-title{
			margin-top: 20rpx;
			color: #999999;
			font-size: 24rpx;
		}
	}

</style>
